
from django.conf.urls import url
from . import views

urlpatterns = [
    # 注册
    url(r'^register/$', views.RegisterView.as_view(), name='register'),
    url(r'login/$',views.Login.as_view()),
    url(r'^usernames/(?P<username>[a-zA-Z0-9-_]{5,20})/count/$',views.UsernameCheck.as_view()),
    url(r'^mobiles/(?P<mobile>1[345789]\d{9})/count/$',views.MobileCheckView.as_view()),
    url(r'^index/$',views.Index.as_view(),name='index')
]